import fetch from '@/utils/fetch';

export function relateCompute(data) {
  return fetch({
    url: '/api/customerOrder/quote/relateCompute',
    method: 'post',
    data
  });
}

export function deleteQuote(data) {
  return fetch({
    url: '/api/quote/delete',
    method: 'post',
    data
  });
}

export function deleteQuoteLine(data) {
  return fetch({
    url: '/api/quote_line/delete',
    method: 'post',
    data
  });
}

export function deleteQuoteLineProd(data) {
  return fetch({
    url: '/api/quote_line/prod/delete',
    method: 'post',
    data
  });
}

export function referHisQuote(data) {
  return fetch({
    url: 'api/customerOrder/quote/referHis',
    method: 'post',
    data
  });
}

export function payList(data) {
  return fetch({
    url: '/api/paylist/list',
    method: 'post',
    data
  });
}

export function prodModifyQuote(data) {
  return fetch({
    url: 'api/customerOrder/quote/prodModify',
    method: 'post',
    data
  });
}

export function modifyQuote(data) {
  return fetch({
    url: '/api/quote/modify',
    method: 'post',
    data
  });
}

export function modifyQuoteLine(data) {
  return fetch({
    url: '/api/quote_line/modify',
    method: 'post',
    data
  });
}

export function quoteList(data) {
  return fetch({
    url: '/api/quote/list',
    method: 'post',
    data
  });
}

export function quoteLineInfo(data) {
  return fetch({
    url: '/api/quote_line/getInfo',
    method: 'post',
    data
  });
}

export function quoteLineList(data) {
  return fetch({
    url: '/api/quote_line/list',
    method: 'post',
    data
  });
}

export function quoteHeadDetail(data) {
  return fetch({
    url: '/api/quote/headDetail',
    method: 'post',
    data
  });
}

export function quoteQueryRemark(data) {
  return fetch({
    url: '/api/quote/queryRemark',
    method: 'post',
    data
  });
}

export function dictCstCompanyList(data) {
  return fetch({
    url: '/api/customerOrder/dict/cstCompanyList',
    method: 'post',
    data
  });
}

export function showOpinion(data) {
  return fetch({
    url: '/api/workflow/show_opinion',
    method: 'post',
    data
  });
}

export function process(data) {
  return fetch({
    url: '/api/workflow/process',
    method: 'post',
    data
  });
}
